import base from "./base.js";

export default class Game extends base {
  constructor(e) {
    super(e);
    this.model = "show";
  }
  async get_playerData(myData) {
    this.model = "player";
    return {
      ...this.screenData,
      saveId: "player",
      ...myData,
    };
  }

  async get_equipmnetData(myData) {
    this.model = "equipment";
    return {
      ...this.screenData,
      saveId: "equipment",
      ...myData,
    };
  }


  async get_najieData(myData) {
    this.model = "najie";
    return {
      ...this.screenData,
      saveId: "najie",
      ...myData,
    };
  }

  async get_stateData(myData) {
    this.model = "state";
    return {
      ...this.screenData,
      saveId: "state",
      ...myData,
    };
  }

//我的宗门
async get_associationData(myData) {
  this.model = "association";
  return {
    ...this.screenData,
    saveId: "association",
    ...myData,
  };
}

//柠檬堂
async get_ningmenghomeData(myData) {
  this.model = "ningmenghome";
  return {
    ...this.screenData,
    saveId: "ningmenghome",
    ...myData,
  };
}


  //万宝楼
  async get_valuablesData(myData) {
    this.model = "valuables";
    return {
      ...this.screenData,
      saveId: "valuables",
      ...myData,
    };
  }

  //武器楼
  async get_valuables_armsData(myData) {
    this.model = "valuables_arms";
    return {
      ...this.screenData,
      saveId: "valuables_arms",
      ...myData,
    };
  }



  //丹药楼
  async get_valuables_drugData(myData) {
    this.model = "valuables_drug";
    return {
      ...this.screenData,
      saveId: "valuables_drug",
      ...myData,
    };
  }

  //功法楼
  async get_valuables_skillData(myData) {
    this.model = "valuables_skill";
    return {
      ...this.screenData,
      saveId: "valuables_skill",
      ...myData,
    };
  }

  //数独
  async get_sudokuData(myData) {
    this.model = "sudoku";
    return {
      ...this.screenData,
      saveId: "sudoku",
      ...myData,
    };
  }

  //修为榜
  async get_ranking_powerData(myData) {
    this.model = "ranking_power";
    return {
      ...this.screenData,
      saveId: "ranking_power",
      ...myData,
    };
  }


  //灵石榜
  async get_ranking_moneyData(myData) {
    this.model = "ranking_money";
    return {
      ...this.screenData,
      saveId: "ranking_money",
      ...myData,
    };
  }

    //更新记录
    async get_updataData(myData) {
      this.model = "updata";
      return {
        ...this.screenData,
        saveId: "updata",
        ...myData,
      };
    }
}
